﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CameraSystem;

namespace SkillSystem
{
    public class SkillCameraShakeProcesser : SkillItemProcesserBase
    {

        float shakeTime = 0.5f;
        float shakeStep = 5f;
        float shakeSpeed = 0.5f;

        CameraItem main;

        public SkillCameraShakeProcesser()
        {
            main = CameraSystemFacade.Inst.GetCamera(CameraType.Main);
        }

        public void SetShakeArgs(float shakeTime = 0.5f, float shakeStep = 5f, float shakeSpeed = 0.5f)
        {

        }

        public override void Do()
        {
            main.Shake(shakeTime, shakeStep, shakeSpeed, OnItemCompleted);
        }

        public override void OnSkillCompleted()
        {
            
        }

        public override void Break()
        {

        }
    }
}
